App({
    onLaunch: function() {
        var n = wx.getUpdateManager();
        n.onCheckForUpdate(function(o) {
            console.log(o.hasUpdate);
        }), n.onUpdateReady(function() {
            wx.showModal({
                title: "更新提示",
                content: "新版本已经准备好，是否重启应用？",
                success: function(o) {
                    o.confirm && n.applyUpdate();
                }
            });
        }), n.onUpdateFailed(function() {
            wx.showModal({
                title: "更新提示",
                content: "新版本下载失败",
                showCancel: !1
            });
        });
    },
    onShow: function(o) {},
    onHide: function() {},
    onError: function(o) {},
    globalData: {
        share: !1,
        height: 0,
        userInfo: null,
        config: null,
        hasLogin: !1,
        shopCartItems: [],
        soldoutShopCartItems: [],
        systemInfo: wx.getSystemInfoSync(),
        ob: {}
    },
    util: require("we7/resource/js/util.js"),
    siteInfo: require("siteinfo.js")
});